package cn.itcast.config;


import cn.itcast.fallback.*;
import feign.Logger;
import org.springframework.context.annotation.Bean;

public class FeignClientConfiguration {
    @Bean
    public Logger.Level feignLogLevel(){
        return Logger.Level.FULL;
    }
    @Bean
    public OrdersClientFallBackFactory orderClientFallBackFactory(){
        return new OrdersClientFallBackFactory();
    }
    @Bean
    public UserClientFallBackFactory userClientFallBackFactory(){
        return new UserClientFallBackFactory();
    }
    @Bean
    public RoomsClientFallBackFactory roomClientFallBackFactory(){
        return new RoomsClientFallBackFactory();
    }
    @Bean
    public CastClientFallBackFactory castClientFallBackFactory(){
        return new CastClientFallBackFactory();
    }
    @Bean
    public NoteClientFallBackFactory noteClientFallBackFactory(){
        return new NoteClientFallBackFactory();
    }


}
